<table class="table shop-table">
    <thead>
    <tr class="shop-bg-thead">
        <th width="5%">ID</th>
        <th width="45%"><?php echo $this->translate('商品名称'); ?></th>
        <th width="15%"><?php echo $this->translate('商品状态'); ?></th>
        <th width="10%"><?php echo $this->translate('操作'); ?></th>
    </tr>
    </thead>
    <tbody>
    <?php if($this->goodsList->getCurrentItemCount() > 0) foreach ($this->goodsList as $goodsValue) { ?>
        <tr id="in-goods-<?php echo $goodsValue->getGoodsId(); ?>">
            <td><?php echo $goodsValue->getGoodsId(); ?></td>
            <td><?php echo $this->escapeHtml($goodsValue->getGoodsName()); ?></td>
            <td><?php echo $this->goodsHelper()->goodsState($goodsValue->getGoodsState()); ?></td>
            <td>
                <a href="javascript:;" onclick="deleteNotConfirm( '<?php echo $this->url('goods-brand', ['action'=>'deleteBrandGoods', 'id'=>$goodsValue->getGoodsId()]); ?>', 'in-goods-<?php echo $goodsValue->getGoodsId(); ?>');" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i> <?php echo $this->translate('删除'); ?></a>
            </td>
        </tr>
    <?php } ?>
    </tbody>
    <tfoot>
    <tr>
        <td colspan="4">
            <?php echo $this->paginationControl($this->goodsList,
                'Sliding',
                'layout/ajaxPage',
                ['route' => 'goods-brand', 'params' => ['action' => 'ajaxBrandGoods', 'id' => $this->brandId], 'showDivId' => 'goodsListBody']); ?>
        </td>
    </tr>
    </tfoot>
</table>